#ifndef GITINIT_H
#define GITINIT_H

#include <QDialog>
#include <QDebug>
#include <QProcess>
#include <QMessageBox>

namespace Ui {
class GitInit;
}

class GitInit : public QDialog
{
    Q_OBJECT

public:
    explicit GitInit(QString directory,bool is_branch,QWidget *parent = nullptr);
    explicit GitInit(QWidget *parent = nullptr);
    ~GitInit();

private slots:
    void on_buttonBox_accepted();

private:
    Ui::GitInit *ui;
    QString directory;
    QProcess *process;
    bool is_branch;
signals:
    void ToUrl(QString);
};

#endif // GITINIT_H
